package com.pojo;

public class PurPerson {
	int pno;
	String pname;
	String ppwd;
	int psex;
	String pphone;
	String premark;
	String pdate;
	public int getPno() {
		return pno;
	}
	public void setPno(int pno) {
		this.pno = pno;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public String getPpwd() {
		return ppwd;
	}
	public void setPpwd(String ppwd) {
		this.ppwd = ppwd;
	}
	public int getPsex() {
		return psex;
	}
	public void setPsex(int psex) {
		this.psex = psex;
	}
	public String getPphone() {
		return pphone;
	}
	public void setPphone(String pphone) {
		this.pphone = pphone;
	}
	public String getPremark() {
		return premark;
	}
	public void setPremark(String premark) {
		this.premark = premark;
	}
	public String getPdate() {
		return pdate;
	}
	public void setPdate(String pdate) {
		this.pdate = pdate;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((pdate == null) ? 0 : pdate.hashCode());
		result = prime * result + ((pname == null) ? 0 : pname.hashCode());
		result = prime * result + pno;
		result = prime * result + ((pphone == null) ? 0 : pphone.hashCode());
		result = prime * result + ((ppwd == null) ? 0 : ppwd.hashCode());
		result = prime * result + ((premark == null) ? 0 : premark.hashCode());
		result = prime * result + psex;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PurPerson other = (PurPerson) obj;
		if (pdate == null) {
			if (other.pdate != null)
				return false;
		} else if (!pdate.equals(other.pdate))
			return false;
		if (pname == null) {
			if (other.pname != null)
				return false;
		} else if (!pname.equals(other.pname))
			return false;
		if (pno != other.pno)
			return false;
		if (pphone == null) {
			if (other.pphone != null)
				return false;
		} else if (!pphone.equals(other.pphone))
			return false;
		if (ppwd == null) {
			if (other.ppwd != null)
				return false;
		} else if (!ppwd.equals(other.ppwd))
			return false;
		if (premark == null) {
			if (other.premark != null)
				return false;
		} else if (!premark.equals(other.premark))
			return false;
		if (psex != other.psex)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "PurPerson [pno=" + pno + ", pname=" + pname + ", ppwd=" + ppwd
				+ ", psex=" + psex + ", pphone=" + pphone + ", premark="
				+ premark + ", pdate=" + pdate + "]";
	}
	public PurPerson(int pno, String pname, String ppwd, int psex,
			String pphone, String premark, String pdate) {
		super();
		this.pno = pno;
		this.pname = pname;
		this.ppwd = ppwd;
		this.psex = psex;
		this.pphone = pphone;
		this.premark = premark;
		this.pdate = pdate;
	}
	public PurPerson() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}
